package com.buaa.airticketbookingsystem.Service.UserServiceImpl;

import com.buaa.airticketbookingsystem.Dao.AirportDao;
import com.buaa.airticketbookingsystem.Entity.Airport;
import com.buaa.airticketbookingsystem.Service.AirportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AirportServiceImpl implements AirportService {

    @Autowired
    private AirportDao airportDao;

    @Override
    public Airport getAirportById(String a_id) {
        return airportDao.getAirportById(a_id);
    }

    @Override
    public Airport getAirportByLoc(String loc) {
        return airportDao.getAirportByLoc(loc);
    }

    @Override
    public Airport getAirportByName(String name) {
        return airportDao.getAirportByName(name);
    }

    @Override
    public void addNewAirport(Airport airport) {
        airportDao.addNewAirport(airport);
    }

}
